package com.pinda.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pinda.base.entity.PdGoodsType;
import com.pinda.base.entity.PdTruckAndGoods;

import java.util.List;

import java.util.List;

/**
 * <p>
 * 货物类型表 服务类
 * </p>
 *
 * @author lc
 * @since 2023-06-14
 */
public interface IPdGoodsTypeService extends IService<PdGoodsType> {
    /**
     * 保存货物类型
     * @param pdGoodsType
     * @return
     */
    public PdGoodsType saveGoodsType(PdGoodsType pdGoodsType);

    /**
     * 查询所有货物类型
     * @return
     */
    public List<PdGoodsType> findAll();

    List findTruckAndGoods(PdTruckAndGoods search);

    int addTruckerAndGoods(PdTruckAndGoods pdTruckerAndGoods);


    void addTruckerAndGoodsType(PdTruckAndGoods pdTruckerAndGoods);

    void updateTruckAndGoods(PdTruckAndGoods pdTruckerAndGoods);

    void updateTruckAndGoodsType(PdTruckAndGoods pdTruckerAndGoods);


    void removeTruckAndGoods(int id);

    void removeTruckAndGoodsType(String dname);
    /**
     * 分页查询货物类型
     * @param page
     * @param pageSize
     * @param name
     * @param truckTypeId
     * @param truckTypeName
     * @return
     */
    public IPage<PdGoodsType> findByPage(Integer page, Integer pageSize, String name, String truckTypeId, String truckTypeName);

    /**
     * 查询货物类型列表
     * @param ids
     * @return
     */
    public List<PdGoodsType> findAll(List<String> ids);
}
